﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 扩展属性
	/// </summary>
	public class DbParamsEx
	{ 
		#region DbParamsEx
		/// <summary>
		/// 
		/// </summary>
		public DbParamsEx()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbParamsEx(Int32 pId)
		{
			this.pId = pId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbParamsEx(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["pId"]),out pId);
			this.pName = Convert.ToString(dr["pName"]);
			this.pFieldType = Convert.ToString(dr["pFieldType"]);
			this.pTextDefaultValue = Convert.ToString(dr["pTextDefaultValue"]);
			this.pSelectTextValue = Convert.ToString(dr["pSelectTextValue"]);
			this.pRemarks = Convert.ToString(dr["pRemarks"]);
			
		}
		#endregion
		
		
		#region PId
		private Int32 pId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 PId
		{
			get{ return pId; }
			set{ pId= value; }
		}
		#endregion
		
		#region PName
		private System.String pName;
		/// <summary>	 
		/// 属性名
		/// </summary>
		public System.String PName
		{
			get{ return pName; }
			set{ pName= value; }
		}
		#endregion
		
		#region PFieldType
		private System.String pFieldType;
		/// <summary>	 
		/// 属性域类别
		/// </summary>
		public System.String PFieldType
		{
			get{ return pFieldType; }
			set{ pFieldType= value; }
		}
		#endregion
		
		#region PTextDefaultValue
		private System.String pTextDefaultValue;
		/// <summary>	 
		/// 默认值
		/// </summary>
		public System.String PTextDefaultValue
		{
			get{ return pTextDefaultValue; }
			set{ pTextDefaultValue= value; }
		}
		#endregion
		
		#region PSelectTextValue
		private System.String pSelectTextValue;
		/// <summary>	 
		/// 默认选择值（只能 下拉，多选，单选有效）
		/// </summary>
		public System.String PSelectTextValue
		{
			get{ return pSelectTextValue; }
			set{ pSelectTextValue= value; }
		}
		#endregion
		
		#region PRemarks
		private System.String pRemarks;
		/// <summary>	 
		/// 备注说明
		/// </summary>
		public System.String PRemarks
		{
			get{ return pRemarks; }
			set{ pRemarks= value; }
		}
		#endregion

	}
}
